FUNCTION print out Smalltalk source as LaTeX source
ST-VERSIONS 4.1
PREREQUISITES none
DISTRIBUTION world
VERSION 1.0
DATE April 7, 1993
This code adds a 'print LaTeX on...' choice to the menus in the various browser panes. When selected, this menu choice produces a file containing a LaTeX version of the Smalltalk source for the selected item. LaTeXing categories and classes yields self-contained LaTeX documents; LaTeXing protocols and methods yields output meant for inclusion in a LaTeX document. In particular, LaTeXing a category yields a document with a table of contents showing what page the class definitions are on, and so the resulting file needs to be latex'd twice.
Carl McConnell
mcconnel@cs.uiuc.edu
Department of Computer Science
University of Illinois at Urbana-Champaign
"!
!Filename methodsFor: 'stream creation'!
latexStream
"Answer a write stream connected to the file represented by
the receiver."
^LatexStream on: (FileConnection
openFileNamed: self
mode: #writeOnly
creationRule: #truncateOrCreate)! !
!Browser methodsFor: 'category list'!
categoryMenu
"Answer a Menu of operations on class categories to be
displayed when the operate menu button is pressed."